<?php
require_once 'Controller.php';

class Layoutable extends Templateable {
	public function __construct() {
		$this->config('Layoutable', true);
		if($title = @$this->conf['site_title']) {
			$this->title($title);
		} else {
			$this->title('Untitled site (edit Layoutable.ini)');
		}
		parent::__construct();
	}

	public function postAction($method) {
		ob_start();
		parent::postAction($method);
		$this->content = ob_get_clean();
		$this->loadTemplate('Layout', 'Index');
	}
}
